package com.zh.mediapojo.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Optional;

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserDto implements Serializable {
    private Integer id;
    private String username;
    private String password;
    private String phone;
    private String sex;
//    @JsonProperty(required = false)
    private String idCard="";
    private String avatar;
    private Integer age;
    private String confirmPassword;
}
